import QtQuick 2.0

Item{

    anchors.fill: parent
    //信号指示灯
    PilotLight{
        id: pilotLight
        x: 1090
//        visible: swipeView.currentIndex == 3
        anchors.bottom: parent.bottom
    }

    //仪表盘
    Dashboard{
        id: graderDashboard
        x: 1090
        y: 10
//        visible: swipeView.currentIndex === 3
        carName: vehicle_manager.current_vehicle_name
        Connections{
            target: vehicle_manager
            onSignalVehiclePingTime:{
                graderDashboard.pingTime = parseFloat(ping_time).toFixed(1);
            }
        }
    }
    function updateDashBoardVisible(v1, v2){
        graderDashboard.updateVisible(v1, v2)
    }

}

